package com.coding.pojo;

import java.io.Serializable;

/**
 * wrong_question
 * @author 
 */
public class WrongQuestion implements Serializable {
    private Integer question_id;

    private Integer user_id;

    private String true_choose;

    private String true_content;

    private String false_choose;

    private String false_content;

    private String wrong_time;

    private String wrong_more;

    private String wrong_tag;

    private Question question;

    private User user;
    private static final long serialVersionUID = 1L;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getQuestion_id() {
        return question_id;
    }

    public void setQuestion_id(Integer question_id) {
        this.question_id = question_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getTrue_choose() {
        return true_choose;
    }

    public void setTrue_choose(String true_choose) {
        this.true_choose = true_choose;
    }

    public String getTrue_content() {
        return true_content;
    }

    public void setTrue_content(String true_content) {
        this.true_content = true_content;
    }

    public String getFalse_choose() {
        return false_choose;
    }

    public void setFalse_choose(String false_choose) {
        this.false_choose = false_choose;
    }

    public String getFalse_content() {
        return false_content;
    }

    public void setFalse_content(String false_content) {
        this.false_content = false_content;
    }

    public String getWrong_time() {
        return wrong_time;
    }

    public void setWrong_time(String wrong_time) {
        this.wrong_time = wrong_time;
    }

    public String getWrong_more() {
        return wrong_more;
    }

    public void setWrong_more(String wrong_more) {
        this.wrong_more = wrong_more;
    }

    public String getWrong_tag() {
        return wrong_tag;
    }

    public void setWrong_tag(String wrong_tag) {
        this.wrong_tag = wrong_tag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WrongQuestion other = (WrongQuestion) that;
        return (this.getQuestion_id() == null ? other.getQuestion_id() == null : this.getQuestion_id().equals(other.getQuestion_id()))
            && (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getTrue_choose() == null ? other.getTrue_choose() == null : this.getTrue_choose().equals(other.getTrue_choose()))
            && (this.getTrue_content() == null ? other.getTrue_content() == null : this.getTrue_content().equals(other.getTrue_content()))
            && (this.getFalse_choose() == null ? other.getFalse_choose() == null : this.getFalse_choose().equals(other.getFalse_choose()))
            && (this.getFalse_content() == null ? other.getFalse_content() == null : this.getFalse_content().equals(other.getFalse_content()))
            && (this.getWrong_time() == null ? other.getWrong_time() == null : this.getWrong_time().equals(other.getWrong_time()))
            && (this.getWrong_more() == null ? other.getWrong_more() == null : this.getWrong_more().equals(other.getWrong_more()))
            && (this.getWrong_tag() == null ? other.getWrong_tag() == null : this.getWrong_tag().equals(other.getWrong_tag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getQuestion_id() == null) ? 0 : getQuestion_id().hashCode());
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getTrue_choose() == null) ? 0 : getTrue_choose().hashCode());
        result = prime * result + ((getTrue_content() == null) ? 0 : getTrue_content().hashCode());
        result = prime * result + ((getFalse_choose() == null) ? 0 : getFalse_choose().hashCode());
        result = prime * result + ((getFalse_content() == null) ? 0 : getFalse_content().hashCode());
        result = prime * result + ((getWrong_time() == null) ? 0 : getWrong_time().hashCode());
        result = prime * result + ((getWrong_more() == null) ? 0 : getWrong_more().hashCode());
        result = prime * result + ((getWrong_tag() == null) ? 0 : getWrong_tag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", question_id=").append(question_id);
        sb.append(", user_id=").append(user_id);
        sb.append(", true_choose=").append(true_choose);
        sb.append(", true_content=").append(true_content);
        sb.append(", false_choose=").append(false_choose);
        sb.append(", false_content=").append(false_content);
        sb.append(", wrong_time=").append(wrong_time);
        sb.append(", wrong_more=").append(wrong_more);
        sb.append(", wrong_tag=").append(wrong_tag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}